<template>
  <div class="status-text-container">
    <div v-if="color" :style="{backgroundColor: color}" class="dot"/>
    <div>{{ text }}</div>
  </div>
</template>

<script>
export default {
  name: 'StatusText',
  props: {
    color: {
      type: String,
      default: ''
    },
    text: {
      type: String,
      default: ''
    }
  }
};
</script>

<style lang="scss" scoped>
.status-text-container {
  display: flex;
  align-items: center;
  .dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    margin-right: 5px;
  }
}
</style>
